<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Minikombajn Pomiarowy: Dokumentacja pliku /home/arek/Dokumenty/AVRprograms/MKP_3_7/main.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Minikombajn Pomiarowy&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Funkcje</a> &#124;
<a href="#var-members">Zmienne</a>  </div>
  <div class="headertitle">
<h1>Dokumentacja pliku /home/arek/Dokumenty/AVRprograms/MKP_3_7/main.c</h1>  </div>
</div>
<div class="contents">

<p>Plik glowny programu.  
<a href="#_details">Więcej...</a></p>
<div class="textblock"><code>#include &lt;avr/io.h&gt;</code><br/>
<code>#include &lt;util/delay.h&gt;</code><br/>
<code>#include &lt;avr/pgmspace.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="lcd132x64_8h_source.html">lcd132x64.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_grafika_8h_source.html">Grafika.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="clksys__driver_8h_source.html">clksys_driver.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_a_d_c_8h_source.html">ADC.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_d_a_c_8h_source.html">DAC.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_keyboard_8h_source.html">Keyboard.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_oscyloskop_8h_source.html">Oscyloskop.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_generator_8h_source.html">Generator.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_wobuloskop_8h_source.html">Wobuloskop.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_multimetr_8h_source.html">Multimetr.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_analizator_8h_source.html">Analizator.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_analizator_st_log_8h_source.html">AnalizatorStLog.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_transmisja_p_c_8h_source.html">TransmisjaPC.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_ustawienia_8h_source.html">Ustawienia.h</a>&quot;</code><br/>
</div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int16_t <a class="el" href="_analizator_8c.html#a1156c1c2861a3a001c9c669890a650f2">kan1_in</a>[512]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#af5795e7b02c84273fcab74ca7089abbd">__attribute__</a> ((section(&quot; .data&quot;)))</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Bufor przechowujacy probki danych kanalu 1.  <a href="#af5795e7b02c84273fcab74ca7089abbd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a47a52cc7f24a0c5fb100ca51dd3ffe9f">PrintMainMenu</a> (uint8_t menu)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funkcja wyswietlajaca menu na ekranie.  <a href="#a47a52cc7f24a0c5fb100ca51dd3ffe9f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#ad31cfdda2df39dd6bd66797c37675f71">CLKInit</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funkcja inicjujaca petle PLL. Ustawienie czestotliosci 32MHz.  <a href="#ad31cfdda2df39dd6bd66797c37675f71"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a41e5f37189a63c61ff01f081d435f26b">CLKIdle</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funkcja wylaczajaca zewnetrzne taktowanie.  <a href="#a41e5f37189a63c61ff01f081d435f26b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funkcja main.  <a href="#a840291bc02cba5474a4cb46a9b9566fe"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">prog_char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8c.html#a96bcf6db0a88bd39273900a3e5738a1c">menu_tab</a> [8][11]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tablica napisow menu.  <a href="#a96bcf6db0a88bd39273900a3e5738a1c"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<div class="textblock"><p>Plik glowny programu. </p>
<dl class="author"><dt><b>Autor:</b></dt><dd>Arkadiusz Hudzikowski </dd></dl>
<dl class="version"><dt><b>Wersja:</b></dt><dd>1.0 </dd></dl>
<dl class="date"><dt><b>Data:</b></dt><dd>22.11.2011</dd></dl>
<p>First version: 02.01.2008 ATMega32 + ATMega8 + LCD Nokia3510i ADS830 2MS/s, DAC0808 5,33MS/s</p>
<p>Second version (full): 21.10.2009 STM32F103RBT6 + LCD Siemens S65 ADS831 72MS/s, DAC0808 6,67MS/s</p>
<p>Third version (small): 14.07.2010 XMega32A4 + LCD SPLC501C ADC-Internal 2MS/s, DAC-Internal 1MS/s </p>
</div><hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="af5795e7b02c84273fcab74ca7089abbd"></a><!-- doxytag: member="main.c::__attribute__" ref="af5795e7b02c84273fcab74ca7089abbd" args="((section(&quot; .data&quot;)))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t <a class="el" href="_analizator_8c.html#a1156c1c2861a3a001c9c669890a650f2">kan1_in</a> [512] __attribute__ </td>
          <td>(</td>
          <td class="paramtype">(section(&quot; .data&quot;))&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Bufor przechowujacy probki danych kanalu 1. </p>
<p>Bufor przechowujacy probki danych kanalu 2 do wyswietlenia na lcd.</p>
<p>Bufor przechowujacy probki danych kanalu 1 do wyswietlenia na lcd.</p>
<p>Bufor przechowujacy probki sygnalu wyjsciowego.</p>
<p>Bufor przechowujacy probki danych kanalu 2. </p>

</div>
</div>
<a class="anchor" id="a41e5f37189a63c61ff01f081d435f26b"></a><!-- doxytag: member="main.c::CLKIdle" ref="a41e5f37189a63c61ff01f081d435f26b" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLKIdle </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funkcja wylaczajaca zewnetrzne taktowanie. </p>
<p>Uruchomiony zostaje wewnetrzny generator 32KHz </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ad31cfdda2df39dd6bd66797c37675f71"></a><!-- doxytag: member="main.c::CLKInit" ref="ad31cfdda2df39dd6bd66797c37675f71" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CLKInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funkcja inicjujaca petle PLL. Ustawienie czestotliosci 32MHz. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="main.c::main" ref="a840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funkcja main. </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>0 </dd></dl>

</div>
</div>
<a class="anchor" id="a47a52cc7f24a0c5fb100ca51dd3ffe9f"></a><!-- doxytag: member="main.c::PrintMainMenu" ref="a47a52cc7f24a0c5fb100ca51dd3ffe9f" args="(uint8_t menu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PrintMainMenu </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>menu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funkcja wyswietlajaca menu na ekranie. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">menu</td><td>: numer wskazywanej pozycji w menu </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>none </dd></dl>

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="a96bcf6db0a88bd39273900a3e5738a1c"></a><!-- doxytag: member="main.c::menu_tab" ref="a96bcf6db0a88bd39273900a3e5738a1c" args="[8][11]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">prog_char <a class="el" href="main_8c.html#a96bcf6db0a88bd39273900a3e5738a1c">menu_tab</a>[8][11]</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Wartość początkowa:</b><div class="fragment"><pre class="fragment">
{
        <span class="stringliteral">&quot;Oscyloskop&quot;</span>,
        <span class="stringliteral">&quot;Generator &quot;</span>,
        <span class="stringliteral">&quot;Analizator&quot;</span>,
        <span class="stringliteral">&quot;An.st.log.&quot;</span>,
        <span class="stringliteral">&quot;Wobuloskop&quot;</span>,
        <span class="stringliteral">&quot;Multimetr &quot;</span>,
        <span class="stringliteral">&quot;RS232-&gt;PC &quot;</span>,
        <span class="stringliteral">&quot;Ustawienia&quot;</span>
}
</pre></div>
<p>Tablica napisow menu. </p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Wygenerowano Fri Dec 30 2011 17:28:02 dla Minikombajn Pomiarowy programem&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
